package com.seek.controller;

import com.seek.domain.SysUser;
import com.seek.service.SysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户信息controller层
 * @author : seek412
 * @version : v1.0
 * @date : 2018-09-22
 */
@RestController
@RequestMapping("user")
public class SysUserController {
    @Resource
    private SysUserService sysUserService;
    /**
     * 查询所有的用户列表
     * @return List
     */
    @GetMapping("info")
    public List<SysUser> listAllUser(){
        return sysUserService.listAllUser();
    }

}
